import Vue from 'vue'
import Router from 'vue-router'
import uploadPage from '@/components/uploadPage'
import successPay from '@/components/successPay'
import failPay from '@/components/failPay'
import newDownload from '@/components/newDownload'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'newDownload',
      redirect: '/newDownload'
    },
    {
      path: '/uploadPage',
      name: 'uploadPage',
      component: uploadPage
    }, {
      path: '/successPay',
      name: 'successPay',
      component: successPay
    },
    {
      path: '/failPay',
      name: 'failPay',
      component: failPay
    }, {
      path: '/newDownload',
      name: 'newDownload',
      component: newDownload
    }
  ]
})
